<template>
    <div class="back">
        <span class="back__ico iconfont" @click="handleBackClick">&#xe749;</span>
      </div>
</template>

<script>
import { useRouter } from 'vue-router'
export default {
    name: 'Back',
    setup() {
        const router = useRouter()
        const handleBackClick = () => {
            router.go(-1);
        }
        return { handleBackClick }
    }
}
</script>

<style lang="scss" scoped>
    .back {
      margin-right: 0.162rem;
      &__ico {
        font-size: 0.32rem;
        color: #b6b6b6;
      }
    }
</style>